package oocl.ita.eordering.service;

import java.util.List;

import org.springframework.web.multipart.MultipartFile;

import oocl.ita.eordering.po.Food;

public interface FoodService {
	
	public int addFood(Food f);
	//查找指定商户的所有菜品
	public List<Food> findFoodsByMId(Integer mId);

	public boolean deleteFood(Integer fId);

	public int updateFood(Integer fId, String fName, double fPrice, String fViewPath);
	//菜品图片处理方法，与DAO层无关.相对路径为/商家电话/foods/UUID.jpg(png)
	public String getFoodViewPath(String mTel, MultipartFile foodPic); 
	//设置推荐状态為2
	public boolean updateStatus(Integer fId);

}
